/*
 * @Description  :
 * @Author       : YiDing Xue
 * @Date         : 2023-02-23
 * @LastEditors  : YiDing Xue
 * @LastEditTime : 2023-03-13
 */
// 登录拦截的页面名单
const loginInterceptionPages = ['bindingWechat', 'bindingMobile']
export const basicRoutes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/home.vue')
  },
  {
    path: '/personal-center',
    name: 'personalCenter',
    component: () => import('@/views/modules/user/personal-center.vue')
  },
  {
    path: '/search',
    name: 'search',
    component: () => import('@/views/modules/works/search.vue')
  },
  {
    path: '/works-category',
    name: 'worksCategory',
    component: () => import('@/views/modules/works/works-category.vue')
  },
  {
    path: '/works-detail',
    name: 'worksDetail',
    component: () => import('@/views/modules/works/works-detail.vue')
  },
  {
    path: '/works-audio',
    name: 'worksAudio',
    component: () => import('@/views/modules/works/works-audio.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/modules/user/login.vue')
  },
  {
    path: '/works-topic',
    name: 'worksTopic',
    component: () => import('@/views/modules/works/works-topic.vue')
  },
  {
    path: '/topic-detail',
    name: 'topicDetail',
    component: () => import('@/views/modules/works/topic-detail.vue')
  },
  {
    path: '/setting',
    name: 'setting',
    component: () => import('@/views/modules/user/setting.vue')
  },
  {
    path: '/my-note',
    name: 'myNote',
    component: () => import('@/views/modules/user/my-note.vue')
  },
  {
    path: '/my-order',
    name: 'myOrder',
    component: () => import('@/views/modules/user/my-order.vue')
  },
  {
    path: '/my-message',
    name: 'myMessage',
    component: () => import('@/views/modules/user/my-message.vue')
  },
  {
    path: '/bind-mobile',
    name: 'bindMobile',
    component: () => import('@/views/modules/user/bind-mobile.vue')
  },
  {
    path: '/settings-password',
    name: 'settingsPassword',
    component: () => import('@/views/modules/user/settings-password.vue')
  }
]

/** history 模式下重定向到 home页 */
export const NOT_FOUND_ROUTE = {
  name: 'NotFound',
  path: '/:pathMatch(.*)*',
  redirect: '/home',
  isHidden: true
}
